package com.uduew.sjd.api;

import static com.uduew.sjd.config.Const.APP_UPDATE;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.RequestBodyType;

public class AppUpdateApi implements IRequestApi, IRequestType {


    @NonNull
    @Override
    public String getApi() {
        return APP_UPDATE;
    }

    /**
     * 获取参数的提交类型
     */
    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.JSON;
    }

    public static final class AppUpdateBean {
        private String allochthonous;
        private String ulcerogenic;
        private boolean deorbit;
        private String anemia;

        public String getAllochthonous() {
            return allochthonous;
        }

        public String getUlcerogenic() {
            return ulcerogenic;
        }

        public boolean isDeorbit() {
            return deorbit;
        }

        public String getAnemia() {
            return anemia;
        }
    }


}

